package com.yellow.orderservice.feign;

import com.yellow.orderservice.entity.Route;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "routing-service",path = "route")
public interface RouteFeignService {

    @GetMapping("getRoute/{id}")
    Route findByOrderId(@PathVariable("id") int orderId);
}
